import { createAPI } from '@/utils/request'

export const list1 = data => createAPI('/permissions', 'get', data)
export const simple1 = data => createAPI('/permissions/simple', 'get', data)
export const add1 = data => createAPI('/permissions', 'post', data)
export const update1 = data => createAPI(`/permissions/${data.id}`, 'put', data)
export const remove1 = data => createAPI(`/permissions/${data.id}`, 'delete', data)
export const detail1 = data => createAPI(`/permissions/${data.id}`, 'get', data)
